package com.longdaji.decoration.ui.main.cart;


import com.longdaji.decoration.base.BasePresenter;
import com.longdaji.decoration.base.BaseView;
import com.longdaji.decoration.data.bean.CartBean;

import java.util.List;
import java.util.Map;

/**
 * Created by longtao on 2017/12/19.
 */

public interface CartContract {

    interface View extends BaseView {
        void showCartList(List<CartBean.Cart> list);

        void showDeleteCartSuccess(List<CartBean.Cart> cartList);

        void showDeleteCartFail();

        void changeCartItemNum(int position, long num);

        void changeCartItemNumFail(String msg);

        void showCollectSuccess();

        void showCollectFail();
    }


    interface Presenter extends BasePresenter<View> {

        void getCartList(String userId);

        void deleteChartGoods(String userId, List<CartBean.Cart> cartGoodsList);

        void collectChartGoods(String userId, List<CartBean.Cart> cartGoodsList);

        void modifyCartItemNum(Map<String, String> options, int position, long num);


    }
}
